/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-16
 * Time: 14:01
 */
public class Rectangle {
    private double width = 1;
    private double height = 1;

    public Rectangle(){}
    public Rectangle(double width, double height){
        this.width = width;
        this.height = height;
    }

    public double getArea(){
        return width * height;
    }
    public double getPerimeter(){
        return (width + height) * 2;
    }
    public void print(){
        System.out.println(width+" "+height+" "+getArea()+" "+getPerimeter());
    }
}
